﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1
{
    class Client
    {
        private int id,codePostal,numeroTelephone;
        private string nom, prenom, dateNaissance, adresse, localite;

        public Client(int id, string nom, string prenom, string dateNaissance, string adresse, string localite, int codePostal, int numeroTelephone)
        {
            this.id = id;
            this.nom = nom;
            this.prenom = prenom;
            this.dateNaissance = dateNaissance;
            this.adresse = adresse;
            this.localite = localite;
            this.codePostal = codePostal;
            this.numeroTelephone = numeroTelephone;
        }

        public int getAge()
        {
            DateTime now = DateTime.Today;
            int age = now.Year; 
            return age;
        }

        public int getId()
        {
            return id;
        }

        public string getNom()
        {
            return nom;
        }

        public string getPrenom()
        {
            return prenom;
        }

        public string getAdresse()
        {
            return adresse;
        }

        public string getLocalite()
        {
            return localite;
        }

        public int getCodePostal()
        {
            return codePostal;
        }

        public int getNumeroTelephone()
        {
            return numeroTelephone;
        }

    }
}
